package com.ecoolex.union.pay.retailer.ws;

import java.util.List;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.union.pay.retailer.core.manager.UnionPayAutoReceiveCouponConfigManager;
import com.ecoolex.union.pay.retailer.entity.UnionPayAutoReceiveCouponConfig;

@Service
public class UnionPayAutoReceiveCouponConfigServiceImpl implements UnionPayAutoReceiveCouponConfigService{
	
	@Autowired
	private UnionPayAutoReceiveCouponConfigManager manager;

	@Override
	public UnionPayAutoReceiveCouponConfig get(Integer configId) {
		return manager.get(configId);
	}

	@Override
	public Pagination<UnionPayAutoReceiveCouponConfig> query(String channelId, String couponCode, Page page) {
		return manager.query(channelId, couponCode, page);
	}

	@Override
	public UnionPayAutoReceiveCouponConfig add(UnionPayAutoReceiveCouponConfig add, String createUser) throws BizException {
		return manager.add(add, createUser);
	}

	@Override
	public UnionPayAutoReceiveCouponConfig edit(UnionPayAutoReceiveCouponConfig edit, String updateUser) throws BizException {
		return manager.edit(edit, updateUser);
	}

	@Override
	public Boolean delete(UnionPayAutoReceiveCouponConfig edit, String updateUser) throws BizException {
		return manager.delete(edit, updateUser);
	}

	@Override
	public List<UnionPayAutoReceiveCouponConfig> queryByChannelId(String channelId) {
		return manager.queryByChannelId(channelId);
	}

}
